#!/usr/bin/env node

import { Circle } from './09-export-object.mjs';

const radius = parseFloat(process.argv[2]);

if (isNaN(radius)) {
  console.error('Please provide a valid radius.');
  process.exit(1);
}

const circle = new Circle(radius);

console.log(`circle area:\t${circle.area().toFixed(2)}`);
console.log(`circle circumference:\t${circle.circumference().toFixed(2)}`);